package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the USERFEEDBACKTYPE database table.
 * 
 */
@Embeddable
public class UserfeedbacktypePK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private long userid;
	private int feedbacktypeid;

    public UserfeedbacktypePK() {
    }

	public long getUserid() {
		return this.userid;
	}
	public void setUserid(long userid) {
		this.userid = userid;
	}

	public int getFeedbacktypeid() {
		return this.feedbacktypeid;
	}
	public void setFeedbacktypeid(int feedbacktypeid) {
		this.feedbacktypeid = feedbacktypeid;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof UserfeedbacktypePK)) {
			return false;
		}
		UserfeedbacktypePK castOther = (UserfeedbacktypePK)other;
		return 
			(this.userid == castOther.userid)
			&& (this.feedbacktypeid == castOther.feedbacktypeid);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.userid ^ (this.userid >>> 32)));
		hash = hash * prime + this.feedbacktypeid;
		
		return hash;
    }
}